﻿#include "TransactionController.h"
#include "DemandController.h"

TransactionController::TransactionController(){}

TransactionController::~TransactionController(){}

void TransactionController::viewDidLoad(){
	CANavigationBarItem* bar=CANavigationBarItem::create("交易大厅");
	CABarButtonItem* btn=CABarButtonItem::create("发布需求", nullptr, nullptr);
	btn->setLabelWidth(130);
	btn->setItemWidth(150);
	btn->setCallbackFunction([]{
		getRootWindow()->pushViewController(DemandController::create(0), true);
	});
	bar->addRightButtonItem(btn);
	this->setNavigationBarItem(bar);
}

void TransactionController::fillData(const string& data){
	
}